/**
 * 
 */
package com.vanstone.imgapp.api.img.services;

import com.vanstone.common.debug.MyAssert;
import com.vanstone.fs.local.LocalFSFile;

/**
 * @author shipeng
 *
 */
public class ImageFSBean {
  private String webURL;
  private LocalFSFile localFSFile;
  private String content;

  public ImageFSBean(String webURL) {
    MyAssert.hasText(webURL);
    this.webURL = webURL;
  }

  public ImageFSBean(LocalFSFile localFSFile) {
    MyAssert.notNull(localFSFile);
    this.localFSFile = localFSFile;
  }

  public LocalFSFile getLocalFSFile() {
    return localFSFile;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public boolean isLocalFSFile() {
    return this.localFSFile != null;
  }

  public String getWebURL() {
    return webURL;
  }
}
